package com.chianghao.rock.system.entity;

import com.chianghao.core.db.annotation.Entity;
import com.chianghao.core.db.annotation.Property;

@Entity(title="后台管理员表",prefix = "sys",logicDeleteFieldName="isDelete")
public class User {
	
	
	@Property(title="主键",primary = true)
	private Long id;
	
	@Property(title="名称")
	private String name;
	
	@Property(title="账号")
	private String account;
	
	@Property(title="密码")
	private String password;
	
	@Property(title="是否超级管理员",defaultValue = "0",remark = "[0否/1是]")
	private Integer isSupperAdmin;
	
	@Property(title="部门id",isNull = true)
    private Long organizationId;
	
	@Property(title="是否删除")
	private Boolean isDelete;

	@Property(title="头像地址",isNull = true)
	private String avatar;
	
	
	
	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public boolean isDelete() {
		return isDelete;
	}

	public void setDelete(boolean isDelete) {
		this.isDelete = isDelete;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getIsSupperAdmin() {
		return isSupperAdmin;
	}

	public void setIsSupperAdmin(Integer isSupperAdmin) {
		this.isSupperAdmin = isSupperAdmin;
	}

	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}
	
	
	
	
	
	
	
}
